<%-------------------------------------------------------------------
 * 页面名称：active_status.jsp
 * 功能描述：填写激活码
 * Action  :
 *
 *-------------------------------------------------------------------
--%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page import="cn.agiledata.bank.common.util.Constant"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%
	String path = request.getContextPath();
	String email = request.getParameter("email");
	String activeCode = request.getParameter("activeCode");
	if (email == null) {
		email = "";
	}
	if (activeCode == null) {
		activeCode = "";
	}
%>
<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/font.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/newstyle.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/common.css" rel="stylesheet" type="text/css" />
<script language="javascript">
	function confirm() {
			if(emptyValidate(getObj("sys_email"),"邮件地址") != "") {
				return false;
			}
			if(matchValidate(getObj("sys_email"),URegexType.email,"邮件地址") != "") {
				return false;
			}
			if(emptyValidate(getObj("sys_activeCode"),"激活码") != "") {
				return false;
			}
		document.forms[0].submit();	
		
		
	}
</script>
<div id="mainFrame">
	<div class="login_logo">
		<!--  <img src="<%=path%>/images/LOGO-4_a.jpg" /> -->
	</div>
	<div>
		<div>
			<span class="bluefont18bdrop">账号激活</span>
		</div>
		<div>
			<table width="100%" border="0" align="center" cellpadding="5"
				cellspacing="1">
				<html:form action="/activate.do" method="post">
					<input type="hidden" name="register_project" value="webpay" />
					<tr>
						<td height="30" align="right" width="40%">
							您的Email地址：
							<span class="orang12b">*</span>
						</td>
						<td width="60%">
							<html:text name="EmailForm" property="sys_email" size="40"
								styleClass="inputStyle" />
						</td>
					</tr>
					<tr>
						<td height="30" align="right" width="40%">
							您收到的激活码：
							<span class="orang12b">*</span>
						</td>
						<td width="60%">
							<html:text name="EmailForm" property="sys_activeCode" size="40"
								styleClass="inputStyle" />
							&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="button" class="graybutton_stylelong" value="账号激活"
								onclick="confirm();" />
						</td>
					</tr>
					<tr>
						<td></td>
						<td height="30">
							<font color="#FF0000"><html:errors bundle="MySpace" /> </font>
						</td>
					</tr>
				</html:form>
				<tr>
					<td height="5" align="center">
						&nbsp;
					</td>
					<td height="20">
						<input type="button" name="return" value="返回首页"
							class="button_style" onclick="location.href='<%=path%>/main.do';"
							style="margin-right:20px;" />
					</td>
				</tr>
			</table>
			<table width="100%" border="0" align="center" cellpadding="7"
				cellspacing="1" bgcolor="#f9e277" style="margin:10px 0;">
				<tr>
					<td bgcolor="#fffdf5">
						<table width="100%" border="0" cellpadding="3" cellspacing="0">
							<tr>
								<td width="3%" height="25" valign="top"
									style="border-bottom:1px solid #ccc;"></td>
								<td width="97%" align="left" class="red12b"
									style="border-bottom:1px solid #ccc;">
									特别提醒
								</td>
							</tr>
							<tr>
								<td valign="top">
									&nbsp;
								</td>
								<td align="left" class="font_gray">
									如果您的登录账号是使用Email注册的，或者绑定了Email，我们会把激活码发送到您的信箱中。
								</td>
							</tr>
							<tr>
								<td valign="top">
									&nbsp;
								</td>
								<td align="left" class="font_gray">
									一般来说，您可以直接点击激活信上的链接来激活账号。
								</td>
							</tr>
							<tr>
								<td valign="top">
									&nbsp;
								</td>
								<td align="left" class="font_gray">
									如果您需要手工激活，请在此输入您的Email地址和收到的激活码。
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<%
			if (!email.equals("")) {
			%>
			<script language="javascript">
		document.forms[0].sys_email.value='<%=email%>';
		document.forms[0].sys_activeCode.value='<%=activeCode%>';
	</script>
			<%
			}
			%>
		